<?php

namespace App\Models;

use Log;
use App\Cache\BaseCache;
use Cache;


class GiftRecord extends BaseModel {
    //表明
    protected $table = 'gift_record';
    //主键
    protected $primaryKey = 'id';

    protected $giftRecordKey = 'Raylive_workman_Gift_RecordliveId';//礼物排行榜
    
    //更新实体
    public function saveModel(){
        cache::forget($this->giftRecordKey.$this->id);
    }
}
